﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using BLL.Entities.Company;

namespace HTAProDataImporterTest
{
    [TestClass]
    public class TestBankAccounts : BaseImporterTest
    {
        [TestMethod]
        public void CheckBankAccountFields()
        {
            BankAccount account = data_importer.store.BankAccounts["2"] as BankAccount;

            Assert.AreEqual(account.Title, "Gen Acct 1");
            Assert.AreEqual(account.AccountNumber, "#1741-5219930");
            Assert.AreEqual(account.AccountHolder, "Traffic Law Paralegal Services");
            Assert.AreEqual(account.AccountType.EntityID, data_importer.store.BankAccountType.Values["General"].EntityID);
            Assert.AreEqual(account.BankName, "TD Canada Trust");
            Assert.AreEqual(account.BranchAddress.AddressLine, "4141 Dixie Road");
            Assert.AreEqual(account.BranchAddress.City, "Mississauga");
            Assert.AreEqual(account.BranchAddress.Province, "Ontario");
            Assert.AreEqual(account.BranchAddress.PostalCode, "L4W 1V5");
            


        }
    }
}
